
    <!--kindeditor编辑器-->
    <script charset="utf-8" src="/application/nkeditor/NKeditor-all.js"></script>
    <!-- 如果你不需要使用批量图片上传，涂鸦功能和文件管理功能，就不需要引入 jquery -->
<!--    <script charset="utf-8" src="/application/nkeditor/libs/jquery.min.js"></script>-->
    <!-- JDialog是一款优秀的漂亮，轻量级的js弹出框插件 不是必须引入的，如果不引入则使用默认的 window.alert() 来弹出提示信息 -->
    <script charset="utf-8" src="/application/nkeditor/libs/JDialog/JDialog.min.js"></script>






    <script>

        var editor;
        KindEditor.ready(function(K) {

            // black theme
            editor=K.create('textarea[name="ai_detail"]', {
                uploadJson : K.basePath+'php/default/upload_json.php',
                fileManagerJson : K.basePath+'php/default/file_manager_json.php',
                allowFileManager : true,
                allowImageUpload : true,
                allowMediaUpload : true,
                themeType : "black", //主题
                //错误处理 handler
                errorMsgHandler : function(message, type) {
                    try {
                        JDialog.msg({type:type, content:message, timer:2000});
                    } catch (Error) {
                        alert(message);
                    }
                }
            });


            var editor2;
            // black theme
            editor2=K.create('textarea[name="ai_introduce"]', {
                uploadJson : K.basePath+'php/default/upload_json.php',
                fileManagerJson : K.basePath+'php/default/file_manager_json.php',
                allowFileManager : true,
                allowImageUpload : true,
                allowMediaUpload : true,
                themeType : "black", //主题
                //错误处理 handler
                errorMsgHandler : function(message, type) {
                    try {
                        JDialog.msg({type:type, content:message, timer:2000});
                    } catch (Error) {
                        alert(message);
                    }
                }
            });


            var editor3;
            // black theme
            editor3=K.create('textarea[name="detail_detail3"]', {
                uploadJson : K.basePath+'php/default/upload_json.php',
                fileManagerJson : K.basePath+'php/default/file_manager_json.php',
                allowFileManager : true,
                allowImageUpload : true,
                allowMediaUpload : true,
                themeType : "black", //主题
                //错误处理 handler
                errorMsgHandler : function(message, type) {
                    try {
                        JDialog.msg({type:type, content:message, timer:2000});
                    } catch (Error) {
                        alert(message);
                    }
                }
            });


            var editor_in1;
            // black theme
            editor_in1=K.create('textarea[name="detail_introduce"]', {
                uploadJson : K.basePath+'php/default/upload_json.php',
                fileManagerJson : K.basePath+'php/default/file_manager_json.php',
                allowFileManager : true,
                allowImageUpload : true,
                allowMediaUpload : true,
                themeType : "black", //主题
                //错误处理 handler
                errorMsgHandler : function(message, type) {
                    try {
                        JDialog.msg({type:type, content:message, timer:2000});
                    } catch (Error) {
                        alert(message);
                    }
                }
            });


            var editor_in2;
            // black theme
            editor_in2=K.create('textarea[name="detail_introduce2"]', {
                uploadJson : K.basePath+'php/default/upload_json.php',
                fileManagerJson : K.basePath+'php/default/file_manager_json.php',
                allowFileManager : true,
                allowImageUpload : true,
                allowMediaUpload : true,
                themeType : "black", //主题
                //错误处理 handler
                errorMsgHandler : function(message, type) {
                    try {
                        JDialog.msg({type:type, content:message, timer:2000});
                    } catch (Error) {
                        alert(message);
                    }
                }
            });


            var editor_in3;
            // black theme
            editor_in3=K.create('textarea[name="detail_introduce3"]', {
                uploadJson : K.basePath+'php/default/upload_json.php',
                fileManagerJson : K.basePath+'php/default/file_manager_json.php',
                allowFileManager : true,
                allowImageUpload : true,
                allowMediaUpload : true,
                themeType : "black", //主题
                //错误处理 handler
                errorMsgHandler : function(message, type) {
                    try {
                        JDialog.msg({type:type, content:message, timer:2000});
                    } catch (Error) {
                        alert(message);
                    }
                }
            });




        });

    </script>